<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/support/taglibs.jsp" %>
<stripes:layout-render name="/support/layout/standard.jsp" title="Collaborations" page="collaborations">
<stripes:layout-component name="contents">

   <jsp:useBean id="isernManager" scope="page"
           class="edu.hawaii.myisern.model.IsernManager"/>
   
<table>
    <c:forEach items="${isernManager.collaborations}" var="collaboration" varStatus="loop"> 
        <tr><td>      ${collaboration.name} </td>
        <td> 
        <c:forEach items="${collaboration.collaboratingOrganizations.collaboratingOrganization}" var="org" varStatus="loop"> 
           ${org},
        </c:forEach>
         </td>
        <td><stripes:link href="CollaborationForm.action" event="preEdit">
                                Edit
                                <stripes:param name="id" value="${collaboration.name}"/>
                            </stripes:link> </td>
        </tr>
    </c:forEach>
</table>   
    </stripes:layout-component>
</stripes:layout-render>
